package Object_3;

public class Fish extends Animal implements ISwimming{
    public Fish(String name){
        super(name);
    }


    @Override
    public void swim() {
        System.out.println(getName() + " is swimming");
    }
}
